import dto

class DtoFactory():
    
    def getIngredientDto(self, ingredient, locale):
        res = dto.IngredientDto()
        
        res.key = ingredient.key();
        res.name = ingredient.getName(locale)
        
        return res
    
    getIngredientDto = classmethod(getIngredientDto)
